<html xmlns:th="http://www.thymeleaf.org">
<link type="text/css" href="/topjui/css/myui.css" rel="stylesheet"/>
<form id="customerform" method="post" style="padding-top:1px" enctype="multipart/form-data">
    <input type="hidden" id="id" name="id" value="0">
    <table class="editTable">
        <tr>
            <td class="label">授权公司</td>
            <td>
                <input type="text" name="companyname" autocomplete="off" class="inputp" data-options="required:true" style="width: 211px;">
            </td>
        </tr>
        <tr>
            <td class="label">品牌名称</td>
            <td>
                <input type="text" name="brandname" autocomplete="off" class="inputp" data-options="required:true" style="width: 211px;">
            </td>
        </tr>
        <tr>
            <td class="label">所属地域</td>
            <td>
                <input type="text" name="region" autocomplete="off" class="inputp" data-options="required:true" style="width: 211px;">
            </td>
        </tr>
        <tr>
            <td class="label">开始时间</td>
            <td>
                <input type="text" id="form-starttime" name="starttime"  class="inputp" data-options="required:true" style="width: 211px;">
            </td>
        </tr>
        <tr>
            <td class="label">结束时间</td>
            <td>
                <input type="text" id="form-stoptime" name="stoptime"  class="inputp" data-options="required:true" style="width: 211px;">
            </td>
        </tr>
        <tr>
            <td class="label">授权书</td>
            <td>
                <input type="file" name="pic"  class="inputp" data-options="required:true" style="width: 211px;">
            </td>
        </tr>
        <tr>
            <td class="label">状态</td>
            <td>
                <select name="status" style="width: 240px;" class="selectp">
                    <option value="1">正常</option>
                    <option value='0'>禁用</option>
                </select>
            </td>
        </tr>
    </table>
    <script th:inline="javascript">
        $(function () {
            $('#form-starttime').datebox({
                formatter: function (date) {
                    var y = date.getFullYear();
                    var m = date.getMonth() + 1;
                    var d = date.getDate();
                    return y + '-' + (m < 10 ? ('0' + m) : m) + '-' + (d < 10 ? ('0' + d) : d);

                }
            });

            $('#form-stoptime').datebox({
                formatter: function (date) {
                    var y = date.getFullYear();
                    var m = date.getMonth() + 1;
                    var d = date.getDate();
                    return y + '-' + (m < 10 ? ('0' + m) : m) + '-' + (d < 10 ? ('0' + d) : d);

                }
            });

            $(".combo-text").removeAttr("style");
            $(".combo-text").attr("style", "width:212px;height:32px;line-height:32px");
            $(".combo-text").addClass("selectp");
            $(".combo-arrow").attr("style", "margin-left: -18px;margin-top: 8px;background-color:rgba(0,0,0,0)");
            $(".combo-panel").attr("style", "margin-top:10px;");
        });

    </script>
</form>
</html>